package com.yiyang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yiyang.pojo.Room;
import com.yiyang.pojo.vo.PageResult;
import com.yiyang.pojo.vo.Result;

import java.util.List;

public interface RoomService extends IService<Room> {
    Result<Room> getRoomById(Integer id);

    Result<PageResult<List<Room>>> getAllRoom(Integer currentPage, Integer pageSize, String num,String floor);

    Result<Void> addRoom(Room room);

    Result<Void> updateRoom(Room room);

    Result<Void> deleteRoom(Integer id);

}
